Integrand size = 12, antiderivative size = 7 \[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=x-\text {arctanh}(\cos (x)) \]
[Out]
Time = 0.10 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4476, 2918, 3855, 8} \[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=x-\text {arctanh}(\cos (x)) \]
[In]
[Out]
Rule 8
Rule 2918
Rule 3855
Rule 4476
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cos (x) \cot (x)}{1-\sin (x)} \, dx \\ & = \int 1 \, dx+\int \csc (x) \, dx \\ & = x-\text {arctanh}(\cos (x)) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(18\) vs. \(2(7)=14\).
Time = 0.08 (sec) , antiderivative size = 18, normalized size of antiderivative = 2.57 \[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=x-\log \left (\cos \left (\frac {x}{2}\right )\right )+\log \left (\sin \left (\frac {x}{2}\right )\right ) \]
[In]
[Out]
Time = 0.36 (sec) , antiderivative size = 14, normalized size of antiderivative = 2.00
method | result | size |
default | \(2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )+\ln \left (\tan \left (\frac {x}{2}\right )\right )\) | \(14\) |
risch | \(x +\ln \left ({\mathrm e}^{i x}-1\right )-\ln \left ({\mathrm e}^{i x}+1\right )\) | \(21\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 20 vs. \(2 (7) = 14\).
Time = 0.25 (sec) , antiderivative size = 20, normalized size of antiderivative = 2.86 \[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=x - \frac {1}{2} \, \log \left (\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) + \frac {1}{2} \, \log \left (-\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) \]
[In]
[Out]
\[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=\int \frac {\cot {\left (x \right )}}{- \tan {\left (x \right )} + \sec {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 23 vs. \(2 (7) = 14\).
Time = 0.30 (sec) , antiderivative size = 23, normalized size of antiderivative = 3.29 \[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) + \log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 8, normalized size of antiderivative = 1.14 \[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=x + \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right ) \]
[In]
[Out]
Time = 22.69 (sec) , antiderivative size = 23, normalized size of antiderivative = 3.29 \[ \int \frac {\cot (x)}{\sec (x)-\tan (x)} \, dx=\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )-2\,\mathrm {atan}\left (\frac {8}{4\,\mathrm {tan}\left (\frac {x}{2}\right )-4}+1\right ) \]
[In]
[Out]